package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjWorkStatementTemplateField;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 工单结单模板字段表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-10-07
 */
@Repository
public interface ZjWorkStatementTemplateFieldMapper extends BaseMapper<ZjWorkStatementTemplateField> {

    /**
     * 批量启用或禁用结单模板字段
     * @param ids 结单字段ID集合
     * @param status 结单字段状态：false-启用，true-禁用
     * @return
     */
    int updateDisableBatchById(@Param("ids") List<Long> ids, @Param("status") boolean status);
}
